import { Component, OnInit } from '@angular/core'
import { AppJWTService } from 'src/app/service/app-jwt.service'

@Component({
  selector: 'User-Info',
  templateUrl: './user-info.component.html',
  styleUrls: ['./user-info.component.less']
})
export class UserInfoComponent implements OnInit {

  private _userInfo = {
    username: 'admin',
    gender: 'MALE',
    phone: '1562555031',
    type: '',
    enabled: '',
    realName: '',
    weixin: '',
    qq: '',
    avatar: '',
  }


  constructor(private jwtService: AppJWTService) { }

  ngOnInit(): void {
    this.userInfo.username = this.jwtService.subject
  }

  public get userInfo() {
    return this._userInfo
  }
  public set userInfo(value) {
    this._userInfo = value
  }
}
